package com.tianhui.consignortwofei.mvp.ui.activity;

import android.os.Bundle;
import android.widget.TextView;

import com.fgs.common.CommonFragment;
import com.fgs.common.CommonPresenter;
import com.fgs.common.CommonView;
import com.tianhui.consignortwofei.R;
import com.tianhui.consignortwofei.base.BaseActivity;
import com.tianhui.consignortwofei.constant.KeyValue;
import com.tianhui.consignortwofei.mvp.model.enty.message.MessageInfo;

import butterknife.BindView;

/**
 * @author fgs
 * @date 2020/9/11
 * @description
 **/
public class MessageDetailActivity extends BaseActivity {

    @BindView(R.id.activity_message_detail_titleTextView)
    TextView mTitleTextView;
    @BindView(R.id.activity_message_detail_timeTextView)
    TextView mTimeTextView;
    @BindView(R.id.activity_message_detail_contentTextView)
    TextView mContentTextView;


    @Override
    public String getToolbarTitle() {
        return "消息内容";
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_message_detail;
    }

    @Override
    public CommonPresenter createPresenter() {
        return null;
    }

    @Override
    public CommonView createView() {
        return null;
    }

    @Override
    public void init() {
        Bundle bundle = getIntent().getExtras();
        if (bundle != null && !bundle.isEmpty()) {
            MessageInfo messageInfo = bundle.getParcelable(KeyValue.KEY_MESSAGE_INFO);
            if (messageInfo != null) {
                mTitleTextView.setText(messageInfo.title);
                mTimeTextView.setText(messageInfo.createTime);
                mContentTextView.setText(messageInfo.content);
            }
        }

    }

    @Override
    public CommonFragment createFragment() {
        return null;
    }
}
